package com.Generics2;

public class Main {
    public static void main(String[] args) {
        Score<String, Integer, Integer> score1 = new Score<>("地理", 345, 66);

        Integer i = score1.getScore();

        System.out.println(i);

        score1.setScore(100);

        score1.test(666);  //静态方法的泛型直接传入进去，字符串或int
        score1.test2("math");  //成员方法也是调用的是传进去就行了
    }
}
